package com.ytclub.auth.application.convent;

import com.ytclub.auth.domain.entity.AuthUserBO;
import com.ytclub.auth.entity.AuthUserDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户DTO的转换器
 *
 * @author: HuangQi
 * @date: Created in 21:23 2023/12/14
 * @description: 用户DTO的转换
 */
@Mapper
public interface AuthUserDTOConverter {
    AuthUserDTOConverter INSTANCE = Mappers.getMapper(AuthUserDTOConverter.class);

    AuthUserBO convertDTOToBO(AuthUserDTO authUserDTO);

    AuthUserDTO convertBOToDTO(AuthUserBO authUserBO);

    List<AuthUserBO> convertListDTOToBO(List<AuthUserDTO> authUserDTOList);


}
